<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>用户注册</title>
<meta http-equiv="content-Type" content="text/html; charset=utf-8">
<base href="<?=base_url()?>" />
<link type="text/css" rel="stylesheet" href="css/reg.css">
<link type="text/css" rel="stylesheet" href="css/suggestion.css">

<script type='text/javascript' src='js/jquery-1.4.2.min.js'></script>
<script type='text/javascript' src="js/common.js"></script>
<script type='text/javascript' src="js/reg.js"></script>
<script type='text/javascript' src="js/tool.js"></script>

<script language="javascript">
<!--
function validateForm(){
	 /*$.ajax({  
         type:"post",  
         data: "id=" + $(this).attr("id"),  
         url:"<?=site_url('home/validate_regist')?>",  
         success: function(data){  
                    alert(data);  
         },  

          error: function() {  
                    alert("ajax error");  
          }  
 	});*/
	return true;
}
//-->
</script>
</head>
<body style="margin-top: 6px">
<!-- 
 onsubmit="return checkForm(this); -->
<form name="reg" action="<?=site_url('home/regist_1')?>" method="post" onsubmit="return validateForm()">
<center>
<table width="650" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tbody>
		<tr>
			<td width="146" valign="top" id="tdlogo">
			<a href="<?=base_url()?>"><img src="img/logo-yy.gif"
				border="0"></a></td>

			<td valign="bottom">
			<table cellspacing="0" cellpadding="0" width="100%" border="0"
				style="margin-bottom: 2px;">
				<tbody>
					<tr>
						<td width="80%" height="24" align="left" class="BGL">
						<b class="p14"><div id="divBanner">用户注册</div></b>
						</td>
						<td width="20%" align="right" class="BGL p14" id="tdhelp"><a
							href="http://www.baidu.com/search/jiqiao.html" target="_blank">帮助</a>&nbsp;&nbsp;</td>
					</tr>
				</tbody>
			</table>
			</td>
		</tr>
	</tbody>
</table>
<div id="freg" align="left">
<div id="check_username_script" style="display: none;"></div>
<table width="630" border="0" cellpadding="0" cellspacing="0">
	<tbody>
		<tr>
			<td>
			<div id="err_msg" style="display: none;">
			<div id="msg_un_checking"><span class="item_desc">正在检查用户名，请稍候……</span></div>
			<div id="msg_un_ok"><span class="item_green">您输入的用户名可用，请继续。</span></div>
			<div id="msg_un_blank">请填写用户名</div>
			<div id="msg_un_length">用户名最长不得超过7个汉字，或14个字节(数字，字母和下划线)</div>
			<div id="msg_un_format">用户名仅可使用汉字、数字、字母和下划线</div>
			<div id="msg_user_exists">此用户名已被注册，请另换一个</div>
			<div id="msg_user_exists2">此用户名已被注册，请另换一个</div>
			<div id="msg_user_deny">此用户名不可使用</div>
			<div id="msg_pw_blank">请填写密码</div>
			<div id="msg_pw_length">密码最少6个字符，最长不得超过14个字符</div>
			<div id="msg_pw_error">密码仅可由数字，字母和下划线组成</div>
			<div id="msg_pw_seclow">您输入密码结构比较简单，建议您更换更加复杂的密码。</div>
			<div id="msg_pw_bad">您的密码结构太过简单，请更换更复杂的密码，否则无法注册成功。</div>
			<div id="msg_pw_secmid">您的密码具有一定安全性，最好使用数字，字母和下划线组合的密码</div>
			<div id="msg_pw_sechigh">您的密码相当安全，请记好</div>
			<div id="msg_pw_verify">密码与确认密码不一致。</div>
			<div id="msg_email_blank">请输入邮件地址</div>
			<div id="msg_email">邮件格式不正确</div>
			<div id="msg_vc_blank">请输入验证码</div>
			<div id="msg_vc_format">验证码格式错误</div>
			<div id="msg_vc_err">验证码错误</div>
			<div id="msg_protocal_no">注册前请阅读并接受百度用户协议</div>
			<div id="msg_format">注册数据格式错误：</div>
			<div id="msg_unknow">注册时发生未知错误</div>
			</div>
			<div align="right" style="margin: 8px 10px 10px 0;">
				<img src="img/i1.gif" border="0" />
				<b>填写个人基本信息</b>&nbsp;&nbsp;
				<span id="spaceitm">2 填写淘宝联盟帐号</span>&nbsp;&nbsp;
				<span id="spaceitm">3 注册成功</span>
			</div>
			<table width="100%" border="0" cellpadding="0" cellspacing="0"
				class="pad10L">
				<tbody>
					<tr>
						<td>
						<div class="item" id="system">
						<div class="item_error">&nbsp;</div>
						</div>
						</td>
					</tr>
					<input type="hidden" name="username_check_result" value="exists"/>
					<tr>
						<td height="8">&nbsp;</td>
					</tr>
					<tr>
						<td height="72" valign="top">
						<div class="item" id="email">
						<div class="item_title">电子邮件地址：</div>
						<div class="item_input">
						<input type="text" id="email_address"
							name="user_id" style="width: 205px" onblur="checkOnChange(this);"
							value="" autocomplete="off"> <iframe
							src="https://passport.baidu.com/img/passport/img/0.gif"
							class="tangram_sug_sd"
							style="display: none; position: absolute; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px;"></iframe>
						<div id="tangram_sug_1320668752072" class="tangram_sug_wpr"
							style="display: none;"></div>
						</div>
						<div class="item_error"></div>
						<div class="item_desc">请输入有效的邮件地址， 用电子邮箱登录。</div>
						</div>
						
						</td>
					</tr>
					<tr>
						<td height="80" valign="top">
						<div class="item" id="loginpass">
						<div class="item_title"><b>密码：</b><span style="margin-left: 75px"><b>确认密码：</b></span></div>
						<div class="item_input" style="*height: 24px;">
							<input
							type="password" name="user_pwd" id="txtloginpass"
							style="width: 96px" value=""
							onchange="checkOnChange(this, false);if(document.reg.verifypass.value!='')checkOnChange(document.reg.user_verify_pwd);">&nbsp;&nbsp;&nbsp;
							
							<input
							type="password" name="user_verify_pwd" style="width: 96px"
							onchange="checkOnChange(this);" value=""></div>
						
						<div id="pwd_error" class="item_error" style="margin-top: 1px; color: #F00; height: 14px; display: none;"></div>
						
						<div class="item_desc">密码长度6～14位，字母区分大小写。</div>
						</div>
						</td>
					</tr>
					<tr>
						<td height="56" valign="top">
						<div class="item" id="sex">
						<div class="item_title">性别：</div>
						<div class="item_input">
							<input type="radio" name="user_sex" value="M" checked="checked" id="sex1"><label for="sex1">男</label>
							<input type="radio" name="user_sex" value="F" id="sex2"><label for="sex2">女</label></div>
						
						</div>
						</td>
					</tr>
					<!-- 
					<tr>
						<td height="80" valign="top">
						<div class="item" id="email">
						<div class="item_title">电子邮件地址：</div>
						<div class="item_input"><input type="text" id="email_address"
							name="email" style="width: 192px" onblur="checkOnChange(this);"
							value="" autocomplete="off"> <iframe
							src="https://passport.baidu.com/img/passport/img/0.gif"
							class="tangram_sug_sd"
							style="display: none; position: absolute; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px;"></iframe>
						<div id="tangram_sug_1320668752072" class="tangram_sug_wpr"
							style="display: none;"></div>
						</div>
						<div class="item_error"></div>
					
						<div class="item_desc">请输入有效的邮件地址，当密码遗失时凭此领取</div>
						</div>
						</td>
					</tr> -->
					<tr>
						<td height="60" valign="top">
						<div class="item" id="verifycode">
						<div class="item_title"></div>
						<div class="item_input" style="height: 42px;">
						<table border="0" cellspacing="0" cellpadding="0">
							<tbody>
								<tr>
									<td><b>输入图中字符：</b><br>
									<input type="text" name="verifycode" maxlength="4"
										onchange="checkOnChange(this);" style="width: 85px"></td>
									<td>
									<a href="javascript:void(0)">
									<img id="authcode" src="<?php echo site_url("imgauthcode/show");?>" onclick="refresh('/imgauthcode/show')" border="0" style="border: 1px solid #CCC"/></a>
									
									<a href="javascript:refresh('/imgauthcode/show')" title="看不清左边的字符">看不清？</a>
									</td>
								</tr>
							</tbody>
						</table>
						</div>
						<div class="verifycode_error"></div>
						</div>
						</td>
					</tr>
					<tr>
						<td valign="top" class="f14">
						<div style="margin: 10px 0 10px 0">
							<input name="submit" type="submit" value=" 下一步 " id="btn_submit" style="width: 145px; font-size: 14px">
						</div>
						</td>
					</tr>

				</tbody>
			</table>
			<script language="JavaScript">
<!--
function refresh()
{
var url='<?php echo site_url()."/imgauthcode/show/";?>'+Math.random();
$('#authcode').attr('src', url);
}

//-->
</script> <br>

			<div id="ft">©2011 Baidu</div>

			<script type="text/javascript" src="/js/tangram_suggestion.js"></script>
			<script type="text/javascript" src="/js/reg_email_suggestion.js"></script>

			<!-- 

--></td>
		</tr>
	</tbody>
</table>
</div>
</center>
</form>
</body>
</html>
